package com.lotus.lqmp.service.controller;

import com.lotus.lqmp.service.biz.XXXBiz;
import com.lotus.lqmp.service.controller.vo.req.XXXReq;
import com.lotus.lqmp.service.controller.vo.resp.XXXResp;
import com.lotus.platform.common.model.base.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 客户端调用的http接口
 * @author Liwei.Zhang3
 * @since 2021/12/30 15:40
 */
@Slf4j
@Api(tags = {"xxx业务"})
@RestController
@RequestMapping("web/biz")
public class XXXController {

    @Autowired
    private XXXBiz xxxBizImpl;

    @PostMapping("func")
    @ApiOperation("测试接口")
    public BaseResult<XXXResp> echo(@RequestBody XXXReq req) {
        return BaseResult.ok(xxxBizImpl.testInner(req));
    }

    @GetMapping("test")
    public BaseResult<String> test() {
        return BaseResult.ok("hello");
    }

}
